package com.zghhost.codedemo.net.socket;

import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author guohua.zhang@zhaopin.com.cn
 * @Date 2019/3/29 14:56
 */
public class MySocketServer {

    public static void main(String[] args)throws Exception{
        ServerSocket ss = new ServerSocket(1234);
        while(true){
            Socket s = ss.accept();
            new MySocketHandler(s).start();
        }
    }
}
